<!DOCTYPE html>
<html>
<head>
	<title>ajax loading</title>
	<link href="common.css" rel="stylesheet" />
	<script src="http://apps.bdimg.com/libs/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript">
	
	function fShowLoading(){
		//$("<div class='jf-window-mask' style='display:block;'></div>").appendTo("body");
        $("<div class='jf-spinner'><img class='jf-spinner-img' src='ajax-spinner.gif' alt='' /></div>").appendTo("body");
        setTimeout(function () {
            $("body div.jf-spinner").remove();
            //$("body div.jf-window-mask").remove();
        }, 5000);
	}

	</script>
</head>
<body>
	<input type="button" value="Test Loading" onclick="fShowLoading();" />
</body>
</html>